package com.example.demo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.example.demo.services.ShowActivities;

/**
 * @author Buer
 * @update 2021/5/2/00219:13
 */
@RestController
public class ActivityControl {
    @Autowired
    private ShowActivities showActivities;

    @GetMapping("/activity/show")
    public String showAll(@RequestParam(value = "page") String page) {
        return showActivities.getAll();
    }
}
